﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SpaceNeedle.City6473.Web.Data.Models
{
    [MetadataType(typeof(AppMetaData))]
    public partial class App
    {
    }

    public class AppMetaData
    {
        [Required(ErrorMessage = "*")]
        [StringLength(50, ErrorMessage = "No máximo {1} caracteres")]
        public string Name { get; set; }

        [StringLength(10, ErrorMessage = "No máximo {1} caracteres")]
        public string Description { get; set; }

        [StringLength(255, ErrorMessage = "No máximo {1} caracteres")]
        public string Uri { get; set; }
    }
}
